﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Template/Login.Master" CodeBehind="~/Account/_Login.aspx.vb" Inherits="CBLabor.Login2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

     <label>Login: </label><br />
     <asp:TextBox ID="txtLogin" runat="server" />
                           <asp:RequiredFieldValidator
                                ID="reqLogin"
                                ErrorMessage="Informe um Login."
                                ControlToValidate="txtLogin"
                                ForeColor="Red"
                                runat="server"
                           />
                           <asp:RegularExpressionValidator
                                ID="regexLogin"
                                ValidationExpression="^[A-Za-zÀ-Üà-ü]{3,20}$"
                                ErrorMessage="Entre um Login Válido"
                                ControlToValidate="txtLogin"
                                ForeColor="Red"
                                runat="server"
                           />
                           <br />
     <label>Senha: </label><br />
     <asp:TextBox ID="txtSenha" TextMode="Password" runat="server" />
     <asp:RequiredFieldValidator
                                ID="reqSenha"
                                ErrorMessage="Não são permitidas Senhas em Branco!!"
                                ControlToValidate="txtSenha"
                                ForeColor="Red"
                                runat="server"
                           />
     <br />

     <asp:Button ID="btnLogin" Text="Entrar" OnClick="AutenticarUsuario" runat="server" />
     <br />

     <asp:Label ID="lblMensagemLogin" runat="server" />

</asp:Content>
